Quickbook API
Booking detail
GET /booking/detail
Description
Get the detail of current booking.
Description
This endpoint allows retrieving the booking detail of a journey with Addison Lee.
Authorization
The Authorization
header carried the API access token in the format AL client_id:client_secret
. Please see Security page for more info
Query Parameters
Parameters | Description | Required? |
---|---|---|
job_uuid | Booking unique identifier | true |
Response
{
"result": "ok",
"account": {
"number": 477601
},
"booking": {
"uuid": "d9d100cb-d50f-4b8d-ad3d-0670fc46d488",
"number": 361728,
"asap": false,
"date": "2020-04-09T14:24:52Z",
"status": "ONWAY",
"service": "select",
"price": {
"total": 34.7,
"vat": 6.94,
"currency": "GBP"
},
"locations": [
{
"street_address": "10 BOMBAY STREET",
"lat": 51.4941925,
"long": -0.06431560000000001,
"town": "LONDON",
"postcode": "SE16 3UX",
"country": "GB"
},
{
"street_address": "189 EARLSFIELD ROAD",
"lat": 51.4466979,
"long": -0.1844334,
"town": "LONDON",
"postcode": "SW18 3DD",
"country": "GB"
}
]
}
"driver": {
"name": "Nicholas",
"telephone": "07958272618",
"vehicle_type": "VIVARO",
"vehicle_reg": "BD51 SMR"
}
}
Parameters | Description |
---|---|
result | The result of the booking |
account.number | Account number used for the booking |
booking.uuid | Id of booking |
booking.number | Number of booking |
booking.references | Any references used on the booking |
booking.asap | Whether the booking was ASAP |
booking.date | Date of the journey |
booking.status | Status of the journey |
booking.service | Class of service |
booking.price.total | Total price of the booking |
booking.price.vat | VAT for the booking |
booking.price.currency | Price currency |
booking.locations.address | Address |
booking.locations.lat | Location of stop (latitude) |
booking.locations.long | Location of stop (longitude) |
booking.locations.airport | Airport Object |
booking.locations.airport.iata | Airport IATA code |
booking.locations.airport.terminal | Airport Terminal |
booking.locations.airport.flight_number | Flight Number |
booking.locations.notes | Notes attached to the stop |
booking.driver.name | Driver Name |
booking.driver.telephone | Telephone number of driver |
booking.driver.vehicle | Model of Vehicle |
booking.driver.vehicle_reg | Registration of the Vehicle |